<template>
    <div>
        <ul class="mui-table-view">
				<li class="mui-table-view-cell mui-media" v-for="item in newsList" :key="item.id">
					<router-link :to="'/home/newdetails/' + item.id">
						<img class="mui-media-object mui-pull-left" src="http://zkres2.myzaker.com/201704/58e5bb501bc8e09c19000003_640.jpg">
						<div class="mui-media-body">
							{{item.title}}
							<p class='mui-ellipsis'>
                                <span>{{item.content}}</span>
                                <span>{{item.time | dateFormat('YYYY-MM-DD')}}</span>
                            </p>
						</div>
					</router-link>
				</li>
			</ul>
    </div>
</template>

<script>
    export default {
        data(){
            return {
                newsList: [
                    {id:0,title:'军事新闻',content: '东方-2018 军演正式拉开帷幕',time: new Date()},
                    {id:1,title:'社会新闻',content: '房价飙升，未来在哪里',time: new Date()},
                    {id:2,title:'娱乐新闻',content: '国产电影 票房口碑双双扑街',time: new Date()},
                    {id:3,title:'娱乐新闻',content: '国产电影 票房口碑双双扑街',time: new Date()},
                    {id:4,title:'娱乐新闻',content: '国产电影 票房口碑双双扑街',time: new Date()},
                    {id:5,title:'娱乐新闻',content: '国产电影 票房口碑双双扑街',time: new Date()},
                    {id:6,title:'娱乐新闻',content: '国产电影 票房口碑双双扑街',time: new Date()},
                    {id:7,title:'娱乐新闻',content: '国产电影 票房口碑双双扑街',time: new Date()},
                    {id:8,title:'娱乐新闻',content: '国产电影 票房口碑双双扑街',time: new Date()},
                    {id:9,title:'娱乐新闻',content: '国产电影 票房口碑双双扑街',time: new Date()},
                    {id:10,title:'娱乐新闻',content: '国产电影 票房口碑双双扑街',time: new Date()},
                    {id:11,title:'娱乐新闻',content: '国产电影 票房口碑双双扑街',time: new Date()},
                    {id:12,title:'娱乐新闻',content: '国产电影 票房口碑双双扑街',time: new Date()},
                    {id:13,title:'娱乐新闻',content: '国产电影 票房口碑双双扑街',time: new Date()}
                ]
            }
        }
    }
</script>

<style>

</style>

